package griffin.website;


import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.content.Context;
import android.content.Intent;
//import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
//import android.widget.ImageView;
//import android.widget.MediaController;
import android.widget.TableRow;
//import android.widget.VideoView;

public class More extends Activity {
	private static final String TAG = "[more]";
    @Override
    protected void onCreate(Bundle savedInstanceState){
    	Log.d(TAG, "[onCreate...] ");
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.more);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
		Button btnAboutUs=(Button)this.findViewById(R.id.btnAboutUs);
		TableRow tbrAboutus=(TableRow)this.findViewById(R.id.tbrAboutUs);
		btnAboutUs.setOnClickListener(new Button.OnClickListener()
		{
			public void onClick(View v) {
				//openIntenInView("AboutUs",More.this);
				Intent intent = new Intent(); 
				intent.setClass(More.this, AboutUs.class); 
				startActivity(intent);
			}
		});	
		tbrAboutus.setOnClickListener(new TableRow.OnClickListener(){
			public void onClick(View v){				
				//openIntenInView("AboutUs",More.this);
				Intent intent = new Intent(); 
				intent.setClass(More.this, AboutUs.class); 
				startActivity(intent);
			}
		});
		TableRow tbrLogin=(TableRow)this.findViewById(R.id.tbrLogin);
		tbrLogin.setOnClickListener(new TableRow.OnClickListener(){
			public void onClick(View v){		
				openIntenInView("Login",More.this);
			}
		});
		TableRow tbrRegister=(TableRow)this.findViewById(R.id.tbrRegister);
		tbrRegister.setOnClickListener(new TableRow.OnClickListener(){
			public void onClick(View v){
				openIntenInView("Register",More.this);
			}
		});
		
		Button btnLogin=(Button)this.findViewById(R.id.btnLogin);
		btnLogin.setOnClickListener(new Button.OnClickListener()
		{
			public void onClick(View v) {
				openIntenInView("Login",More.this);
			}
		});
		Button btnRegister=(Button)this.findViewById(R.id.btnRegister);
		btnRegister.setOnClickListener(new Button.OnClickListener()
		{
			public void onClick(View v) {
				openIntenInView("Register",More.this);
			}
		});		
	}
    
//	Intent intent = new Intent();
//	intent.putExtra("winname", "aboutus"); 
//	intent.setClass(more.this, TabBarFramework.class);
//	startActivity(intent);
//    openIntenInView("aboutus",more.this);
    public void openIntenInView(String name,Context context){
		Intent intent = new Intent();
		intent.putExtra("winname", name); 
		intent.setClass(context, TabBarFramework.class);
		startActivity(intent);
    }
}